import UpmsMenuAndAuthorityTree from '@/core/upms/types/model/dto/UpmsMenuAndAuthorityTree'
import UpmsMenuShowStatusEnum from '@/core/upms/enums/UpmsMenuShowStatusEnum'
import UpmsMenuResponse from '@/core/upms/types/model/response/UpmsMenuResponse'
import UpmsAuthorityResponse from '@/core/upms/types/model/response/UpmsAuthorityResponse'

const menus: UpmsMenuAndAuthorityTree[] = [
	{
		menu: {
			title: '应用管理',
			icon: 'fa fa-tv',
			sort: 0,
			showStatus: UpmsMenuShowStatusEnum.DISPLAY.getCode(),
			uri: '/application',
		} as Partial<UpmsMenuResponse>,
		authority: {} as UpmsAuthorityResponse,
		children: [
			{
				menu: {
					title: '应用管理',
					icon: 'fa fa-desktop',
					sort: 0,
					showStatus: UpmsMenuShowStatusEnum.DISPLAY.getCode(),
					uri: '/application/list',
				} as Partial<UpmsMenuResponse>,
				authority: {} as UpmsAuthorityResponse,
				children: [],
			},
			{
				menu: {
					title: '应用客户端管理',
					icon: 'fa fa-shield',
					sort: 0,
					showStatus: UpmsMenuShowStatusEnum.DISPLAY.getCode(),
					uri: '/application/oauth2/list',
				} as Partial<UpmsMenuResponse>,
				authority: {} as UpmsAuthorityResponse,
				children: [],
			},
			{
				menu: {
					title: '应用配置管理',
					icon: 'fa fa-shield-halved',
					sort: 0,
					showStatus: UpmsMenuShowStatusEnum.DISPLAY.getCode(),
					uri: '/application/config/list',
				} as Partial<UpmsMenuResponse>,
				authority: {} as UpmsAuthorityResponse,
				children: [],
			},
		],
	},
]

export default menus
